package com.aizuda.boot.modules.business.approval.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "任务中心DTO")
public class TaskCenterDTO {

    @Schema(description = "合同ID")
    private Integer contractId;

    @Schema(description = "合同编号")
    private String contractCode;

    @Schema(description = "合同名称")
    private String contractName;

    @Schema(description = "合同当前节点名称")
    private String currentNodeName;

    @Schema(description = "合同类型名称")
    private String contractTypeName;

    @Schema(description = "申请人ID")
    private Long applicantId;

    @Schema(description = "申请人姓名")
    private String applicantName;

    @Schema(description = "申请人昵称")
    private String applicantNickname;

    @Schema(description = "申请人头像")
    private String applicantAvatar;

    @Schema(description = "申请人主部门名称")
    private String applicantDepartmentName;

    @Schema(description = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;

    @Schema(description = "任务类型：PENDING-待办，COMPLETED-已办，CC-抄送")
    private String taskType;
}
